<template>
  <div class="login">
    <h1>登录页</h1>
    <el-button type="primary" @click="login">主要按钮</el-button>
  </div>
</template>

<script>
import tools from 'tools'
import powerRouter from 'router'
console.log(tools.store);

export default {
  name: 'login',
  data () {
    return {

    }
  },
  methods: {
    login () {
      this.$$api_login_login({
        fn: res => {
          console.log(res);
          tools.store.set('router', res.data.router)
          this.compareRouter(res.data.router, powerRouter)
        }
      })
    },
    compareRouter (sv_data, lc_data) {
      let replyResult = [];
      let findLocalRoute = (sv_data, lc_data) =>  {
        lc_data.forEach((item, index) => {
          console.log();
          
        })
      }
  }
}
</script>

<style scoped lang='scss'>

</style>
